using System;

namespace Slaks.Web.Parser
{
	public delegate void ParserEventHandler(object sender,ParserEventArgs parserEventArgs);

	public class ParserEventArgs : EventArgs
	{
		protected string m_message;
		protected string m_fileName = String.Empty;
		protected Exception m_exception;

		public ParserEventArgs(string message,Exception ex)
		{
			m_message = message;
			m_exception = ex;
		}

		public ParserEventArgs(string message,string fileName,Exception ex)
		{
			m_message = message;
			m_fileName = fileName;
			m_exception = ex;
		}

		public string GetMessage()
		{
		  return m_message; 
		}
		public string GetFileName()
		{
			return m_fileName;
		}
		public Exception GetException()
		{
			return m_exception;
		}
	}
}